﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace WebApi.Models
{
    [Table("Orders")]
    public class Orders : EntityTypeConfiguration<Orders>   /*购买记录*/
    {
        
        public int ID { set; get; }     /*1、排序*/
        public int pro_Id { set; get; }    /*2、商品编号*/
        public int SKU_Id { set; get; }       /*2、库存号*/
        public string C_Id { set; get; }       /* 3、微信用户*/
        [Key]
        public string Odr_Id { set; get; }        /*4、商户单号*/
        public string Odr_TransactionId { set; get; }       /*5、交易单号*/
        public DateTime? Odr_TimeStamp { set; get; }       /*6、购买时间*/
        public string Odr_Parent { set; get; }       /*7、订单邀请人*/
        public int Odr_Amount { set; get; }       /*8、购买数量*/
        public decimal? Odr_UnitPrice { set; get; }       /*9、购买单价*/
        public decimal? Odr_TotalPrice { set; get; }
        public int Odr_State { set; get; }       /*10、订单状态*/
        public decimal? Odr_Commission { set; get; }       /*11、佣金金额*/
        public string Odr_TransitNum { set; get; }       /*12、物流单号*/
        public int? Odr_Count { set; get; }       /*13、购买次数*/
        public string Co_Id { set; get; }       /*14、优惠券*/
        public int? Odr_Receipt { set; get; }       /*15、发票*/
        public string Odr_Buyer { get; set; }  /*16、收货人*/
        public string Odr_Address { get; set; }  /*17、收货人地址*/
        public string Odr_Phone { get; set; }  /*18、收货人电话*/
        public int? Odr_IsCommented { get; set; } /*该订单是否已被评论*/


    }
}